﻿@model IEnumerable<WebSoftSeo.Models.AboutCategory>

@{
    ViewBag.Title = "Index";
    Layout = "~/Areas/Admin/Views/Shared/_Layout.cshtml";
}

<div class="mar10 borall">
    <div class="floatl">
        <span class="floatl">
            <img src="/Areas/Admin/images/icon-48-generic.png" /></span> 
        <span class="title-name">Công ty</span>
    </div>
    <ul class="floatr toolbar-list">
        <li class="button">
            <a class="toolbar" href="/@WebSoftSeo.Models.GlobalVariables.PathFolderName/AboutCategory/Create">
                <span class="icon-32-new"></span>
                Thêm mới
            </a>
        </li>
    </ul>
</div>

<!--end borall-->

   <div class="clear0"></div>
    <div class="mar10 borall">
        <table class="formtable">
            <tbody>
    <tr>
        <th>
            Tiêu đề
        </th>
        <th>
            Nội dung
        </th>      
    </tr>

@foreach (var item in Model) {
    <tr>
         <td>
            @Html.DisplayFor(modelItem => item.Name)
        </td>
       @* <td>
            @Html.DisplayFor(modelItem => item.Contents)
        </td>*@
       
        
        
        <td>
                        <a class="button blue" title="Sửa" href="/@WebSoftSeo.Models.GlobalVariables.PathFolderName/AboutCategory/Edit?id=@item.AboutID">
                            <div class="icon">
                                <p class="ic-edit"></p>
                            </div>
                        </a>
                         <a class="button red" href="/@WebSoftSeo.Models.GlobalVariables.PathFolderName/AboutCategory/Delete?id=@item.AboutID" title="Xóa">
                            <div class="icon">
                                <p class="ic-delete"></p>
                            </div>
                        </a>
                    </td>
    </tr>
}

</table>
